#!/bin/bash
./teardown.sh
. ./init.sh


. scripts/deploy_chaincode.sh java ${PWD}/chaincode/chaincode_example023/java mycc02_java


. scripts/test_example2.sh mycc02_java

cd /home/ubuntu/workspace/app/example02_java/



mvn package


java -classpath ./target/example02-1.0-SNAPSHOT-jar-with-dependencies.jar example02.EnrollAdmin
java -classpath ./target/example02-1.0-SNAPSHOT-jar-with-dependencies.jar example02.RegisterUser


java -classpath ./target/example02-1.0-SNAPSHOT-jar-with-dependencies.jar example02.InvokeInitChainCode

cd ~/workspace
